#ifndef TEMPDRAWUI_H
#define TEMPDRAWUI_H

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui {
class TempDrawUI;
}
QT_END_NAMESPACE

class TempDrawUI : public QWidget
{
    Q_OBJECT

public:
    TempDrawUI(QWidget *parent = nullptr);
    ~TempDrawUI();

    void setTemps(const QVector<double>& temps);


private:
    Ui::TempDrawUI *ui;
    QVector<double> m_temps;
    double m_average = 0.0;
    void getAverage();

protected:
    void paintEvent(QPaintEvent*) override;
};
#endif // TEMPDRAWUI_H
